from django.http import HttpResponse
from django.shortcuts import render_to_response
from django.db import connection


def myindex(request):
	cur=connection.cursor()
	sql="select concat('[',date_format(startdate,'%%Y-%%m-%%d'),']  ',text) from scheduler_scheduler where startdate>date(now()) order by startdate limit 15"
	cur.execute(sql)
	Content=cur.fetchall()
	cur.close()
	return render_to_response('index.html',{'content':Content})